export const useLoading = () => {
  let loadingInstance = null;
  const loading = (content) => {
    loadingInstance = ElLoading.service({
      lock: true,
      text: content,
      background: "rgba(0, 0, 0, 0.7)",
    });
  };

  const close = () => {
    loadingInstance.close();
  };

  return {
    loading,
    close,
  };
};
